package com.company.ndklearnproject.bean;

import android.util.Log;

/**
 * @author Toosan
 * @description
 * @time 2022/5/10 1:12
 */
public class Person {
    private static final String TAG = "Person";
    private String name;
    private int age;
    private Student student;

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public static void showInfo(String info) {
        Log.i(TAG,"JNI showInfo: " + info);
    }

    public void setStudent(Student student) {
        this.student = student;
        Log.i(TAG,"JIN setStudent student = " + student);
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", student=" + student +
                '}';
    }
}
